package com.jiukuaidao.zhulin.module.address.contract;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.data.TaskDataSource;
import com.jiukuaidao.zhulin.entity.ApiHistoryAddressInfo.*;

import java.util.List;

/**
 * Author : PaiTaSuo
 * Date : 2016/5/30
 * Description :
 */
public interface AddressManagerContract {
    int REFRESH = 1;
    int LOADMORE = 2;

    interface Presenter extends IBasePresenter {
        void loadData();
    }

    interface View extends IBaseView<Presenter> {
        void getAddressInfo(List<AddressInfo> shoppingAddressList);

        void toast(String msg);

        int index();

        int refreshOrLoad();

    }

    interface Model extends TaskDataSource {
        List getAddressList();

        void setAddressList(List list);
    }
}
